const { finBannerDao, updataBannerDao } = require("../dao/bannerDao");
const { handleDataPattern, formatResponse } = require("../utils/tool");

module.exports.findBannerService = async function () {
  const data = handleDataPattern(await finBannerDao());
  return formatResponse(0, "", data);
}

module.exports.updataBannerSrevice = async function (bannerAll) {
  const data = handleDataPattern(await updataBannerDao(bannerAll));
  return formatResponse(0, "", data);
}